import axios from '@/libs/api.request'

// 公积金应付账单
export class FinancePFPayableApi {
  // 公积金应付账单导入
  static importPFPayableBill (params) {
    return axios.request({
      url: '/FinancePFPayable/ImportPFPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取公积金应付账单列表数据_new
  static getPFPayableBillList (params) {
    return axios.request({
      url: '/FinancePFPayable/GetPFPayableBillList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取明细数据
  static getPFPayableBillDetail (params) {
    return axios.request({
      url: '/FinancePFPayable/GetPFPayableBillDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出公积金应付账单
  static exportPFPayableBill (params) {
    return axios.request({
      url: '/FinancePFPayable/ExportPFPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出公积金应付账单
  static exportPFPayableBillDetail (params) {
    return axios.request({
      url: '/FinancePFPayable/ExportPFPayableBillDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除数据
  static delete (params) {
    return axios.request({
      url: '/FinancePFPayable/Delete',
      method: 'delete',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出公积金应付明细账单
  static exportSPayableBill (params) {
    return axios.request({
      url: '/FinancePFPayable/ExportSPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取保险编号
  static getSecurityNos (params) {
    return axios.request({
      url: '/FinancePFPayable/GetSecurityNos',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 导出编号
  static exportSecurityNos (params) {
    return axios.request({
      url: '/FinancePFPayable/ExportSecurityNos',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 校验并获取当前公积金总额
  static checkConfirmPay (params) {
    return axios.request({
      url: '/FinancePFPayable/CheckConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 公积金付款确认
  static confirmPay (params) {
    return axios.request({
      url: '/FinancePFPayable/ConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出付款单-实付
  static exportPayment (params) {
    return axios.request({
      url: '/FinancePFPayable/ExportPayment',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出明细 弹出页面 选择月份，填写编号
  static exportPayableDetail (params) {
    return axios.request({
      url: '/FinancePFPayable/ExportPayableDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出付款申请单
  static exportPayPDF (params) {
    return axios.request({
      url: '/FinancePFPayable/ExportPayPDF',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 付款申请
  static payApply (params) {
    return axios.request({
      url: '/FinancePFPayable/PayApply',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 社保付款申请_new
  static getPFPayableBillListApply (params) {
    return axios.request({
      url: '/FinancePFPayable/GetPFPayableBillListApply',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 社保应付账单_new
  static getPFPayableBillList (params) {
    return axios.request({
      url: '/FinancePFPayable/GetPFPayableBillList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取可申请余额_new（点击申请付款之前调用）
  static getApplyRest (params) {
    return axios.request({
      url: '/FinancePFPayable/GetApplyRest',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 申请付款_new
  static applyPay (params) {
    return axios.request({
      url: '/FinancePFPayable/ApplyPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取付款信息列表_new
  static getPayList (params) {
    return axios.request({
      url: '/FinancePFPayable/GetPayList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 社保付款确认_new
  static confirmPay (params) {
    return axios.request({
      url: '/FinancePFPayable/ConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 申请删除
  static deletePayApply (params) {
    return axios.request({
      url: '/FinancePFPayable/DeletePayApply',
      method: 'delete',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 强制删除
  static forceDelete (params) {
    return axios.request({
      url: '/FinancePFPayable/ForceDelete',
      method: 'delete',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
